package datas;

import java.text.DateFormat;
import java.text.ParseException;
import java.util.Date;

public class Data5
{

	public static void main(String[] args)
	{
		Date d1 = new Date();
		DateFormat df = DateFormat.getDateInstance(DateFormat.LONG);
		String x = df.format(d1);
		System.out.println(x);
		
		try
		{
			Date d2 = df.parse(x);
			System.out.println(d2);;
		} catch (ParseException e)
		{
			// TODO: handle exception
			e.printStackTrace();
		}
	}
	
}
